<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-html"  prefix="html"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>修改密码</title>
    <link href="CSS/Accessible_Design.css" rel="stylesheet" type="text/css" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript"  language="java">
	function check(){
	var myform=document.getElementById("passwodrForm");
	var oldPwd=document.getElementById("oldPassword").value;
	
	if(oldPwd=="")
	{alert("请输入原始密码");
	return false;
	}
	var newPwd=myform.newPassword.value;
	var newPwdAgin=myform.newPasswordAgion.value;
	if(newPwd!=newPwdAgin)
	{
	 alert("两次输入的密码不至");
	return false;
	}
	}
	</script>

	
  </head>
  
  <body>
  
   <html:form action="changePassword.do" styleId="passwodrForm">
    <table border="1" cellspacing="0" width="500">
    <tr>
    <td colspan="2" align="center"  >
  <b> 密码修改</b>
    </td>
    </tr>
   
    <tr>
    <td width="100">
  	 旧密码：
    </td>
    <td>
    <html:password property="oldPassword"></html:password>
    </td>
    </tr>
    
    <tr>
    <td>
  	 新密码：
    </td>
    <td>
     <html:password property="newPassword"></html:password>
    </td>
    </tr>
    
    <tr>
    <td>
  	 重复新密码：
    </td>
    <td>
    <html:password property="newPasswordAgion"></html:password>
    </td>
    </tr>
    
    <tr>
    <td colspan="2" >
  	<html:submit value="确认修改" onclick="return check();"></html:submit>
    </td>
    </tr>
    <tr>
    </table>
    </html:form>
  </body>
</html>
